import { ApiProperty } from "@nestjs/swagger";
import { IsArray, IsString } from "class-validator";

export class DeleteBatchByUrlDto {
    @IsArray()
    @IsString({ each: true })
    @ApiProperty({
        description: "文件url列表",
        type: "array",
        items: {
            type: "string"
        },
        example: [
            "http://localhost:7001/api/v1/storage/file/file-1763115508010_972118262-&image_png&-image.png",
            "http://localhost:7001/static/image/file-1763134357323_56434305-&image_jpeg&-image.jpg"
        ],
        required: true
    })
    urls: string[];
}
